package com.gjy.util.sb.controller;

import com.gjy.util.sb.entity.AjaxResult;
import com.gjy.util.sb.vo.ParamRequest;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-12-07 14:39:52
 */
@RestController
@RequestMapping("/param")
@Validated
public class ParamController {

    @PostMapping("/t1")
    public AjaxResult t1(@RequestBody @Valid ParamRequest request) {
        return AjaxResult.builder().data(request).build();
    }
}
